package jy.hibernate.beans;

import java.util.Set;

/**
 *  Resources entity
 * @author tingzi
 *
 */
public class Resources implements java.io.Serializable{

	private static final long serialVersionUID = -8810416271955802018L;
	//Field 
	private Integer res_id;//����id
	private String res_name;//��Դ��
	private String res_route;//��Դ·��
	private Function funtion;
	private Set<Right> rights;//该资源的所有权限用户
	public Set<Right> getRights() {
		return rights;
	}
	public void setRights(Set<Right> rights) {
		this.rights = rights;
	}
	public Integer getRes_id() {
		return res_id;
	}
	public void setRes_id(Integer res_id) {
		this.res_id = res_id;
	}
	public String getRes_name() {
		return res_name;
	}
	public void setRes_name(String res_name) {
		this.res_name = res_name;
	}
	public String getRes_route() {
		return res_route;
	}
	public void setRes_route(String res_route) {
		this.res_route = res_route;
	}
	/** full constructor */
	public Resources(String res_name,String res_route){
		this.res_name=res_name;
		this.res_route=res_route;
	}
	public String toString(){
		return "res_name:"+res_name+"/tres_route:"+res_route;
	}
	public Function getFuntion() {
		return funtion;
	}
	public void setFuntion(Function funtion) {
		this.funtion = funtion;
	}
}